package com.boot.core.result

data class EChartsRadar(
        var legend: Legend,
        var radar: MutableList<Radar> = mutableListOf(),
        var series: MutableList<SeriesItem> = mutableListOf(),
        var title: Title
) {
    data class SeriesItem(
            val `data`: MutableList<Data>,
            val type: String = "radar"
    ) {
        data class Data(
                val name: String,
                val value: MutableList<Int> = mutableListOf()
        )
    }

    data class Radar(
            val indicator: List<Indicator>,
            val radius: Int = 90
    ) {
        data class Indicator(
                val max: Int,
                val text: String
        )
    }

    data class Title(
            val text: String
    )

    data class Legend(
            val `data`: MutableList<String> = mutableListOf(),
            val x: String = "center"
    )
}